<!DOCTYPE html>
<html lang="zh-cn">
<!--包含头部-->
{{include file="{{$smarty.const.APP_PATH}}Home/View/Public/header.html"}}
<body>
<div class="lefter">
    <div class="logo"><a href="/"><img src="/images/logo.png" alt="后台管理系统" /></a></div>
</div>
<div class="righter nav-navicon" id="admin-nav">
    <div class="mainer">
        <!--导航-->
        {{include file="{{$smarty.const.APP_PATH}}Home/View/Public/nav.html"}}
        <div class="admin-bread">
            <span>您好，admin，欢迎您的光临。</span>
            <ul class="bread">
                <li><a href="index.html" class="icon-cog">文章管理</a></li>
                <li>编辑文章</li>
            </ul>
        </div>
    </div>
</div>

<div class="admin">

    <div class="tab">
        <div class="padding border-bottom">
            <!--<input type="button" class="button active button-small" value="编辑分类" />-->
            <input type="button" class="button button-small border-yellow" value="分类列表" onclick="javascript:window.location.href='/article/index/category'"/>
            <input type="button" class="button button-small border-green" value="添加分类" onclick="javascript:window.location.href='/article/index/category_add'"/>
        </div>
      <div class="tab-body">
        <br />
        <div class="tab-panel active" id="tab-set">
        	<form method="post" class="form-x" action="/article/index/category_edit_post">
                <input name="category_id" value="{{$category_id}}" type="hidden">
				<div class="form-group">
                    <div class="label"><label for="category_parent_id">所属分类:</label></div>
                    <div class="field">
                        <select id="category_parent_id" name="category_parent_id">
                            <option value="0" {{if $category_info.category_parent_id==0}}selected="selected"{{/if}}>顶级目录</option>
                            {{foreach from=$parent_category_list item=i}}
                            <option value="{{$i.category_id}}" {{if $i.category_id==$category_info.category_parent_id}}selected="selected"{{/if}}>-->{{$i.category_name}}</option>
                            {{/foreach}}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label"><label for="category_name">分类名称</label></div>
                    <div class="field">
                        <input type="text" class="input input-auto" id="category_name" name="category_name" size="50" placeholder="分类名称" data-validate="required:请填写分类名称" value="{{$category_info.category_name}}" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="label"><label for="category_sort">分类排序</label></div>
                    <div class="field">
                        <input type="text" class="input input-auto" id="category_sort" name="category_sort" size="50" placeholder="分类排序" data-validate="required:请填写分类排序" value="{{$category_info.category_sort}}" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>是否显示</label>
                    </div>
                    <div class="field">
                        <div class="button-group button-group-small radio">
                            <label class="button {{if $category_info.category_show==1}}active{{/if}}" >
                                <input name="category_show" value="1" type="radio" {{if $category_info.category_show==1}}checked="checked"{{/if}}><span class="icon icon-check"></span>显示
                            </label>
                            <label class="button {{if $category_info.category_show==2}}active{{/if}}">
                                <input name="category_show" value="2" type="radio" {{if $category_info.category_show==2}}checked="checked"{{/if}}><span class="icon icon-times"></span>隐藏
                            </label>
                        </div>
                    </div>
                </div>
                <div class="form-button"><button class="button bg-main" type="submit">提交</button></div>
            </form>
        </div>
      </div>
    </div>
    <!--包含底部-->
    {{include file="{{$smarty.const.APP_PATH}}Home/View/Public/footer.html"}}
</div>
<div class="hidden"><script src="#" language="JavaScript"></script></div>
</body>
</html>